{% extends "crt/view.html" %}

{% block title %}Sign-up to the Current Reality Tree application{% endblock %}
{% block page_path %}welcome > sign-up{% endblock %}

{% block menu %}
    <table class="menu_header">
        <tr>
            <td nowrap align="left">
                <a href="/crt/home">Home</a> |
                <strong>Add</strong> |
                <a href="/crt/signout">Sign-out</a>
            </td>
    </table>
{% endblock %}


{% block view_area %}

<link type="text/css" href="/static/css/style.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="/static/css/infovis.css" />
<link type="text/css" rel="stylesheet" href="/static/css/hypertree.css" />

<script type="text/javascript" src="/static/js/mootools-1.2.js"></script>

<!--[if IE]><script language="javascript" type="text/javascript" src="/static/js/excanvas.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="/static/js/hypertree/Hypertree.js"></script>
<script language="javascript" type="text/javascript" src="/static/js/compressed/infovis.js"></script>
<script language="javascript" type="text/javascript" src="/static/js/example/static1-hypertree.js"></script>

<script language="javascript" type="text/javascript" >
    <!--
    function get_data() {
        //var json ={"id":"347_0","name":"Life sucks","children":[{"id":"126510_1","name":"Not being productive in work","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"52163_2","name":"Laziness","data":[{"key":"Jerome Dillon","value":"member of band"}],"children":[]},{"id":"324134_3","name":"Lack of focus","data":[{"key":"Jerome Dillon","value":"member of band"}],"children":[]}]},{"id":"173871_4","name":"Charlie Clouser","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[]},{"id":"235952_5","name":"James Woolley","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[]},{"id":"235951_6","name":"Jeff Ward","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"2382_7","name":"Ministry","data":[{"key":"Jeff Ward","value":"member of band"}],"children":[]},{"id":"2415_8","name":"Revolting Cocks","data":[{"key":"Jeff Ward","value":"member of band"}],"children":[]},{"id":"3963_9","name":"Pigface","data":[{"key":"Jeff Ward","value":"member of band"}],"children":[]},{"id":"7848_10","name":"Lard","data":[{"key":"Jeff Ward","value":"member of band"}],"children":[]}]},{"id":"235950_11","name":"Richard Patrick","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"1007_12","name":"Filter","data":[{"key":"Richard Patrick","value":"member of band"}],"children":[]},{"id":"327924_13","name":"Army of Anyone","data":[{"key":"Richard Patrick","value":"member of band"}],"children":[]}]},{"id":"2396_14","name":"Trent Reznor","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"3963_15","name":"Pigface","data":[{"key":"Trent Reznor","value":"member of band"}],"children":[]},{"id":"32247_16","name":"1000 Homo DJs","data":[{"key":"Trent Reznor","value":"member of band"}],"children":[]},{"id":"83761_17","name":"Option 30","data":[{"key":"Trent Reznor","value":"member of band"}],"children":[]},{"id":"133257_18","name":"Exotic Birds","data":[{"key":"Trent Reznor","value":"member of band"}],"children":[]}]},{"id":"36352_19","name":"Chris Vrenna","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"1013_20","name":"Stabbing Westward","data":[{"key":"Chris Vrenna","value":"member of band"}],"children":[]},{"id":"3963_21","name":"Pigface","data":[{"key":"Chris Vrenna","value":"member of band"}],"children":[]},{"id":"5752_22","name":"Jack Off Jill","data":[{"key":"Chris Vrenna","value":"member of band"}],"children":[]},{"id":"33602_23","name":"Die Warzau","data":[{"key":"Chris Vrenna","value":"member of band"}],"children":[]},{"id":"40485_24","name":"tweaker","data":[{"key":"Chris Vrenna","value":"is person"}],"children":[]},{"id":"133257_25","name":"Exotic Birds","data":[{"key":"Chris Vrenna","value":"member of band"}],"children":[]}]},{"id":"236021_26","name":"Aaron North","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[]},{"id":"236024_27","name":"Jeordie White","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"909_28","name":"A Perfect Circle","data":[{"key":"Jeordie White","value":"member of band"}],"children":[]},{"id":"237377_29","name":"Twiggy Ramirez","data":[{"key":"Jeordie White","value":"is person"}],"children":[]}]},{"id":"235953_30","name":"Robin Finck","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"1440_31","name":"Guns N' Roses","data":[{"key":"Robin Finck","value":"member of band"}],"children":[]}]},{"id":"235955_32","name":"Danny Lohner","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"909_33","name":"A Perfect Circle","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"1695_34","name":"Killing Joke","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"1938_35","name":"Methods of Mayhem","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"5138_36","name":"Skrew","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"53549_37","name":"Angkor Wat","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"113510_38","name":"Puscifer","data":[{"key":"Danny Lohner","value":"member of band"}],"children":[]},{"id":"113512_39","name":"Renhold\u00ebr","data":[{"key":"Danny Lohner","value":"is person"}],"children":[]}]}],"data":[]};
        //var json_mock ={"id":"347_0","name":"Life sucks","children":[{"id":"126510_1","name":"Not being productive in work","data":[{"key":"Nine Inch Nails","value":"member of band"}],"children":[{"id":"52163_2","name":"Laziness","data":[{"key":"Jerome Dillon","value":"member of band"}],"children":[]},{"id":"324134_3","name":"Lack of focus","data":[{"key":"Jerome Dillon","value":"member of band"}],"children":[]}]}],"data":[]};
        {% autoescape off %}
        var json = {{ json_data }};
        {% endautoescape %}
        return json;
    }

    {% block js_init %}init();{% endblock %}
    
    -->
</script>

</head>


<div id="header">
</div>

<div id="left">

    

    <div id="details" class="toggler left-item">Add cause problem</div>
    
    <div id="form-details">
        <form method="post">
            <input type="hidden" name="effect" value="{{ effect }}"/>
            <p><label for="name">problem name:</label><br/>
                <input type="text" name="name"/>
            </p>
            <p><label for="description">description:</label><br/>
                <textarea name="description" cols=25 rows=3></textarea>
            </p>
            <p><label for="importance">importance:</label><br/>
                <select name="importance">
                {% for c in importance_choices %}
                    <option value="{{ c.0 }}">{{ c.1 }}
                {% endfor %}
                </select>
            </p>
            <p><label for="tags">tags (separated by comma):</label><br/>
                <input type="text" name="tags"/>
            </p>
            <p>
                <input type="submit" value="Save"/>
            </p>
        </form>
    </div>
<div style="display: none;" class="element contained-item">
    <div style="display: none;" class="inner" id="inner-details">
    </div
</div>

</div>
<div id="infovis"></div>

<div id="log"></div>



{% endblock %}
